import baostock as bs
import time

lg = bs.login()
rs = bs.query_trade_dates(start_date=time.strftime('%Y-%m-%d',time.localtime(time.time())))
data_list = []
while (rs.error_code == '0') & rs.next():
    # 获取一条记录，将记录合并在一起
    print(rs.get_row_data())
#### 登出系统 ####
bs.logout()